package sample.student;

import com.sun.org.apache.bcel.internal.generic.ANEWARRAY;
import controller.student.StudentClassTableController;
import controller.student.StudentGradeController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

public class StudentGrade extends Application {
    private  String username;
    public StudentGrade(String username){
       this.username = username;
    }
    public StudentGrade(){

    }
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        try{
            FXMLLoader fxmlLoader =  new FXMLLoader(getClass().getResource("/fxml/student/学生我的成绩.fxml"));
            Parent root = fxmlLoader.load();
            Scene sc;
            StudentGradeController studentGradeController = fxmlLoader.getController();
            studentGradeController.update(this.username);
            sc= new Scene(root,705,446);
            primaryStage.setScene(sc);
            primaryStage.show();

        }catch (Exception e){
            e.printStackTrace();
        }


    }
}
